<%--
  Created by IntelliJ IDEA.
  User: chenrui
  Date: 2021/4/16
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>通讯录编辑</h2>
<form name="form1" method="post" action="edit_submit">
<table width="400" border="1" cellspacing="1" cellpadding="1">
  <tr>
    <td>姓名：</td>
    <td><input type="text" name="username" id="username" value="${addressbook.username}"></td>
  </tr>
  <tr>
    <td>手机号：</td>
    <td><input type="text" name="phone" id="phone" value="${addressbook.phone}"></td>
  </tr>
  <tr>
    <td>性别：</td>
    <td>
      <input type="radio" name="gender" id="gender1" value="男" <c:if test="${addressbook.gender=='男'}"> checked="checked"</c:if> >
      男
      <input type="radio" name="gender" id="gender2" value="女" <c:if test="${addressbook.gender=='女'}"> checked="checked"</c:if>>
      女</td>
  </tr>
  <tr>
    <td>家庭住址：</td>
    <td><input type="text" name="address" id="address" value="${addressbook.address}"></td>
  </tr>
  <tr>
    <td colspan="2"><input type="submit" name="button" id="button" value="提交"></td>
    </tr>
</table>
  <input type="hidden" name="id" value="${param.id}">
</form>
</body>
</html>
